Skip to main content

BlockRandom

BlockRandom[expr] evaluates expr with all pseudorandom generators localized, so that uses of SeedRandom, RandomInteger, and related functions within the evaluation of expr do not affect subsequent pseudorandom sequences.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.